﻿<Window x:Class="LINQFun.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="84" Width="453" x:Name="mWindow" >
        
    <Grid>
        
        
        <StackPanel Margin="10">

            <StackPanel Orientation="Horizontal">           
                
                
                <TextBox KeyUp="SearchBox_KeyUp" TextChanged="SearchBox_TextChanged" Width="120" Name="SearchBox"></TextBox>               
                <Button Click="SearchButton_Click" Margin="10, 0, 0, 0" Name="SearchButton" Content="download"></Button>

                <Grid HorizontalAlignment="Right" Name="PBar" Visibility="Collapsed" Margin="10, 0, 10, 0">
                    <ProgressBar Width="200" Height="20" IsIndeterminate="True">
                    </ProgressBar>
                    <TextBlock HorizontalAlignment="Center" Text="downloading data.."></TextBlock>
                </Grid>

            </StackPanel>

                <Grid>
                    <DataGrid Width="650" Height="450" ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible" ScrollViewer.CanContentScroll="True" Visibility="Collapsed" Margin="10" ItemsSource="{Binding ElementName=mWindow, Path=ExtData}"  Name="Data">

                    </DataGrid>
                </Grid>


            <TextBlock Margin="10, 0, 0, 0" Text="rekordów: "></TextBlock>
            <TextBlock Margin="20, 0, 5, 10" FontSize="14" FontWeight="Bold" Text="{Binding ElementName=mWindow, Path=ResREcords}"></TextBlock>

            
            <WrapPanel Width="500" Height="200">
                <RadioButton Margin="10" Checked="none_Checked"  Name="none">none</RadioButton>
                <RadioButton Margin="10" Checked="prof_Checked" Name="prof">prof</RadioButton>
                <RadioButton Margin="10" Checked="dr_Checked" Name="dr">dr</RadioButton>
                <RadioButton Margin="10" Checked="hab_Checked" Name="hab">dr hab.</RadioButton>
                <RadioButton Margin="10" Checked="CheckBox_Checked" Name="pokoj">pare pokoi [imię, nazwisko, pokoje]</RadioButton>
                <RadioButton Margin="10" Checked="maxNaz_Checked" Name="maxNaz">max nazwisko</RadioButton>
            </WrapPanel>
            

            

        </StackPanel>
        

        
    </Grid>
</Window>
